<template>
  <div>
    <h2>孙子组件</h2>
    <button @click="() => callbackGrandson(obj)">传值给爷组件</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      obj: {
        name: "zh",
        age: 24,
      },
    };
  },
  props: {
    callbackGrandson: {
      type: Function,
    },
  },
};
</script>

<style scoped>
</style>